using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SampleCallWS
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnSendMT_Click(object sender, EventArgs e)
        {
            string _url = "http://210.245.81.131/ComonWS/SMSAgentWS.asmx";
            WSSendMT.Service ws = new SampleCallWS.WSSendMT.Service();
            ws.Url = _url;
            int _result = ws.SendMT("0","8069",txtmsisdn.Text.Trim(),txtMT.Text.Trim()
                , "text", "1", "1", "10312","1","LG","LG!@#");


            if (_result == 200)
            {
                MessageBox.Show("Gui MT thanh cong");
            }
            else
            {
                MessageBox.Show("Gui MT khong thanh cong");
            }
        }

       
      
       

    }
}